package sardine;

import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpResponse;
import sardine.route.RouteMatched;

/**
 * @auth bruce_sha
 * @date 2015/5/22
 */
public final class RequestResponseFactory {

    private RequestResponseFactory() {
    }

    public static Request create(RouteMatched match, FullHttpRequest request) {
        return new Request(match, request);
    }

    public static Response create(HttpResponse response) {
        return new Response(response);
    }
}
